﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ShopOnline.Models.Product>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SẢN PHẨM - DỊCH VỤ
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div class="new_orther">
                    <div class="new_orther_top_event">
                       <div class="title_project1"><%=ViewData["productCate"]%></div>
                    </div>
                     <div class="new_orther_top_event_right">
                     </div>
                    <div class="new_orther_center">
				<div class="nav_content_text_orther">
                   <%foreach (var item in ViewData["listProductByCate"] as List<ShopOnline.Models.Product>)
                  { %>
					<div class="orther_text">					
					<img src="../../Content/Products/<%=item.image %>" />
					 <p> <a href="/Product/ListDetail?id=<%=item.productId%>">
                        <%=item.productName %>
                      </a>    </br>
                      <%
                        var  itempro = "";
                          try
                          {
                              itempro = item.information.Substring(0, 200).ToString();
                          }catch
                         {
                             itempro = item.information;
                         }
                          %>
                      
					    <%=itempro%>...
							
					</p>
					</div>
					<%} %>
					
				</div>
                    </div>
                

</asp:Content>
